package com.track;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.app.*;
import android.content.Intent;
import android.widget.Button;


public class select extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState){
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.selectionview);
		
       
        Button btn = (Button)findViewById(R.id.btn_back_to_welcome_view);
       	btn.setOnClickListener(onBackToWelcome);
       	btn = (Button)findViewById(R.id.btn_map_view);
       	btn.setOnClickListener(onMapSelect);
       	btn = (Button)findViewById(R.id.btn_settings_view);
       	btn.setOnClickListener(onSettingsSelect);
       	btn = (Button)findViewById(R.id.btn_ddd_view);
       	btn.setOnClickListener(onDDDSelect);
	}
	
	
    private OnClickListener onBackToWelcome = new OnClickListener(){
    	public void onClick(View v){
    		Intent intent = new Intent();
            intent.setClass(select.this, track.class);
            startActivity(intent);
    		//finish();
    	};
    	
    };
	  
    private OnClickListener onMapSelect = new OnClickListener(){
    	public void onClick(View v){
    		Intent intent = new Intent();
            intent.setClass(select.this, mapview.class);
            startActivity(intent);
    		
    	};
    	
    };
    
    private OnClickListener onDDDSelect = new OnClickListener(){
    	public void onClick(View v){
    		Intent intent = new Intent();
            intent.setClass(select.this, DDD.class);
            startActivity(intent);
    		
    	};
    	
    };
    
    private OnClickListener onSettingsSelect = new OnClickListener(){
    	
    	public void onClick(View v){
    		Intent intent = new Intent();
            intent.setClass(select.this, settings.class);
            startActivity(intent);
    	
    	};
    	
    };
} 
